org 0x7e00
[bits 16]
mov ax, 0xb800
mov gs, ax

; 控制输出 12*80+12=972 0x3cc
mov ah, 0x5b ; 背景红 字体青色
mov ecx,strlen
mov ebx,0x03cc
;imul ebx,ebx,2
mov esi,string
output_string:
    mov al,[esi]
    mov word[gs:bx],ax
    inc esi
    add ebx,2
    loop output_string

mov ah, 0x03 ;青色
mov ecx, bootloader_tag_end - bootloader_tag
xor ebx, ebx
add ebx,160	;在第二行显示80*2
mov esi, bootloader_tag
output_bootloader_tag:
    mov al, [esi]
    mov word[gs:bx], ax
    inc esi
    add ebx,2
    loop output_bootloader_tag
jmp $ ; 死循环

string db "22336271 ysj,I'm your operating system!Thank you:)"
strlen equ $ - string
bootloader_tag db 'run bootloader'
bootloader_tag_end:
